using System;
using System.Collections.Generic;
using WIT.DAQ.Core.Helper;

namespace WIT.DAQ.Core;

/// <summary>
/// 返回给WIT.Core的结果
/// </summary>
public class DAQResult
{
	/// <summary>
	/// 平台执行结果（仅表示有无异常）
	/// </summary>
	public bool Result { get; set; } = true;


	/// <summary>
	/// 错误信息
	/// </summary>
	public string ErrMsg { get; set; } = string.Empty;


	/// <summary>
	/// 值的集合
	/// </summary>
	public Dictionary<string, object> Values { get; set; } = new Dictionary<string, object>();


	/// <summary>
	/// 时间戳
	/// </summary>
	public long Timestamp { get; } = TimeHelper.ConvertToTimestamp(DateTime.Now);

}
